package com.base.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.base.mapper.voipmapper.ShopOrderMapper;
import com.base.po.sqlparam.ShopOrderExamplePage;
import com.base.po.voip.ShopOrder;
import com.base.po.voip.ShopOrderExample;
import com.base.service.ShopOrderService;
import com.base.utils.Page;
import org.springframework.stereotype.Service;

@Service("shopOrderService")
public class ShopOrderServiceImpl implements ShopOrderService {
	@Autowired
	ShopOrderMapper shopOrderMapper;

	@Override
	public int countByExample(ShopOrderExample example) {
		return shopOrderMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(ShopOrderExample example) {
		return shopOrderMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		return shopOrderMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ShopOrder record) {
		return shopOrderMapper.insert(record);
	}

	@Override
	public int insertSelective(ShopOrder record) {
		return shopOrderMapper.insertSelective(record);
	}

	@Override
	public List<ShopOrder> selectByExample(ShopOrderExample example) {
		return shopOrderMapper.selectByExample(example);
	}

	@Override
	public List<ShopOrder> selectByExamplePage(ShopOrderExamplePage example) {
		return shopOrderMapper.selectByExamplePage(example);
	}

	@Override
	public ShopOrder selectByPrimaryKey(String id) {
		return shopOrderMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(ShopOrder record, ShopOrderExample example) {
		return shopOrderMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(ShopOrder record, ShopOrderExample example) {
		return shopOrderMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(ShopOrder record) {
		return shopOrderMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ShopOrder record) {
		return shopOrderMapper.updateByPrimaryKey(record);
	}

	@Override
	public int countByAll(String ordernum, String mobile, String parentid, Integer statusFrom, Integer statusTo) {
		return shopOrderMapper.countByAll(ordernum, mobile, parentid, statusFrom, statusTo);
	}

	@Override
	public List<ShopOrder> selectByAll(Page page, String ordernum, String mobile, String parentid, Integer statusFrom, Integer statusTo) {
		return shopOrderMapper.selectByAll(page, ordernum, mobile, parentid, statusFrom, statusTo);
	}

	@Override
	public ShopOrder selectByOrdernum(String ordernum) {
		return shopOrderMapper.selectByOrdernum(ordernum);
	}

	@Override
	public ShopOrder selectByXgt(String subid, String parentid, String cid) {
		return shopOrderMapper.selectByXgt(subid, parentid, cid);
	}

	@Override
	public int selectByXgt2(String subid, String parentid, String cid) {
		return shopOrderMapper.selectByXgt2(subid, parentid, cid);
	}

	@Override
	public int updateByXgt(String id) {
		return shopOrderMapper.updateByXgt(id);
	}

	@Override
	public int selectByCountSO(String tmid, String subid) {
		return shopOrderMapper.selectByCountSO(tmid, subid);
	}

}
